#include <stdio.h>

enum Status
{
  AVAILABLE,
  BORROWED
};

struct Book
{
  int id;
  char title[30];
  enum Status status;
};

int main()
{
  struct Book book1;
  struct Book book2;
  struct Book book3;

  book1.id = 1;
  snprintf(book1.title, sizeof(book1.title), "C Programming");
  book1.status = AVAILABLE;
  printf("Book ID: %d\n", book1.id);
  printf("Book Title: %s\n", book1.title);
  printf("Book Status: %s\n", book1.status == AVAILABLE ? "Available" : "Borrowed");

  book2.id = 2;
  snprintf(book2.title, sizeof(book2.title), "Data Structures");
  book2.status = BORROWED;
  printf("Book ID: %d\n", book2.id);
  printf("Book Title: %s\n", book2.title);
  printf("Book Status: %s\n", book2.status == AVAILABLE ? "Available" : "Borrowed");

  book3.id = 3;
  snprintf(book3.title, sizeof(book3.title), "Algorithms");
  book3.status = AVAILABLE;
  printf("Book ID: %d\n", book3.id);
  printf("Book Title: %s\n", book3.title);
  printf("Book Status: %s\n", book3.status == AVAILABLE ? "Available" : "Borrowed");

  return 0;
}